﻿using System;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

namespace com.igetui.api.openservice.utils
{
	// Token: 0x0200003A RID: 58
	internal static class Util
	{
		// Token: 0x060004DA RID: 1242 RVA: 0x0000BA44 File Offset: 0x00009C44
		public static void SetCertificatePolicy()
		{
			ServicePointManager.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback)Delegate.Combine(ServicePointManager.ServerCertificateValidationCallback, new RemoteCertificateValidationCallback(Util.RemoteCertificateValidate));
		}

		// Token: 0x060004DB RID: 1243 RVA: 0x00008D7F File Offset: 0x00006F7F
		private static bool RemoteCertificateValidate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error)
		{
			return true;
		}
	}
}
